package com.jiazhong.boot.mvc.interceptor.controller;

import com.jiazhong.boot.commons.util.JsonResult;
import com.jiazhong.boot.commons.util.ResultTool;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/first")
public class FirstController {

    @GetMapping("/a")
    public JsonResult a() {
        log.info("This is FirstController`a method!");
        return ResultTool.success("This is FirstController`a method!");
    }
    @GetMapping("/b")
    public JsonResult b() {
        log.info("This is FirstController`b method!");
        return ResultTool.success("This is FirstController`b method!");
    }
}
